import cv2

if __name__ == '__main__':
    img = cv2.imread('lena_gray.jpg')
    cv2.imshow('lena', img)
    img[100:120, 100:120] = 255

    cv2.imshow('img', img)
    cv2.waitKey(0)
    cv2.destroyAllWindows()